<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri= "/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link href="../jscss/dtree.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../jscss/dtree.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
         <title>Hello</title>
     </head>
     <body>
     		
     	<s:if test="list!=null">
     	<select>
     	<option selected="selected">省份/直辖市</option>
     	</s:if>
	         <s:iterator value="list" id="area">
	         	<option value='<s:property value="areaId"/>'><s:property value="areaName"/></option>
	         </s:iterator>
         <s:if test="list!=null">
         </select>
     	</s:if>
     	<div class="dtree">
     	</div>
     	<script>
     	d = new dTree('d');
     	d.add(0,-1,'My example tree');
     	<s:property value="tree" />
     	document.write(d);
  		</script>
  		
  		<table>
  			<thead>
  				<th>areaId</th>
  				<th>areaCode</th>
  				<th>areaName</th>
  				<th>parentId</th>
  			</thead>
  			<s:iterator value="list">
  				<tr>
  					<td><s:property value="areaId"/></td>
  					<td><s:property value="areaCode"/></td>
  					<td><s:property value="areaName"/></td>
  					<td><s:property value="parentId"/></td>
  				</tr>
  			</s:iterator>
  		</table>
     </body>
 </html>
